package com.zet.etchat.controller;


import com.zet.etchat.util.OpenAIChatClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/chat")
public class ChatController {

    @GetMapping
    public String chat(String message) {
        return OpenAIChatClient.chat(message);
    }

}
